package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.User;

/**
 * @author ：wanghao
 * @date ：Created in 2020/12/4
 * @description ：用户服务接口
 * @version: 1.0
 */
public interface UserService {
    public User findByUsername(String username);
    public void add(User user, Integer[] roleIds);
    public PageResult findPage(QueryPageBean queryPageBean);
    public Integer[] findUserAndRole(Integer userId);
    public User findById(Integer id);
    public void edit(User user, Integer[] roleIds);
    public void deleteById(Integer id);
    public Result findListByUsername(String username);
}
